
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="empleados" value="${requestScope.empleados}"/>


<%@page contentType="text/html" pageEncoding="UTF-8"%>

<HTML>
<HEAD>
<TITLE>Modificar Empleado</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<script type="text/javascript">

        function  clickReporte_Abonado(){
            var hiddenAction=document.getElementById("action");
            hiddenAction.value="reporte_abonado";
        }

        function  clickCrear_Abonado(){
            var hiddenAction=document.getElementById("action");
            hiddenAction.value="crear_abonado";
        }
		function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		butt_01_over = newImage("images/butt_01-over.jpg");
		butt_02_over = newImage("images/butt_02-over.jpg");
		butt_03_over = newImage("images/butt_03-over.jpg");
		butt_04_over = newImage("images/butt_04-over.jpg");
		butt_05_over = newImage("images/butt_05-over.jpg");
		butt_06_over = newImage("images/butt_06-over.jpg");
		preloadFlag = true;
	}
    </script>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<script type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
<link href="livevalidation.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js_livevalidation_standalone.js"></script>

<link href="general.css" rel="stylesheet" type="text/css">
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css">

</HEAD>
<BODY BGCOLOR=#133F54 ONLOAD="preloadImages();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
  <TABLE WIDTH=774 BORDER=1 CELLPADDING=0 CELLSPACING=0>
    <TR>
      <TD width="178" height="218" align="center" valign="middle" class="logo"><p><strong>Chasqui-soft</strong></p>
      <p><img src="images/defaultlogo.gif" width="48" height="48" alt="logo"></p></TD>
      <TD width="590" align="left" valign="top"><img src="images/callcenter_banner.jpg" width="1009" height="216" alt="banner"></TD>
    </TR>
    <TR>

      <TD height="152"><img src="images/info_area.jpg" alt="back" width=178 height=270></TD>
      <TD rowspan="3" align="center" valign="top"><table width="500" height="516" border="0" cellspacing="0">
           <tr>
              <td><p class="ruta">><a href="usuario.jsp" class="ruta">Administración</a>><a href="user_pestanas.jsp" class="ruta">Usuario</a>><a href="modificar_usuario.jsp" class="ruta">Empleado</a>><a href="empleado.jsp" class="ruta">Modificar Empleado</a>&gt; Editar Empleado</p></td>
              <tr>
          <td width="583" height="516" align="center" valign="top" scope="col"><p>&nbsp;</p>
            <p class="Titlulos_General">Modificar Empleado</p>
            <p class="Titlulos_General"><img src="images/t_19.jpg" width="500" height="2" alt="serparador"></p>
            <p class="Titlulos_General">&nbsp;</p>
            <table width="964" height="237" border="0" cellpadding="0" cellspacing="0">
              <form method="post" action="EmpleadoServlet">
                <input type="hidden" name="action2" value="updateEmpleado_exe"/>
                <tr>
                  <td width="201">&nbsp;</td>
                  <td width="266" class="texto">Nombre:</td>
                  <td colspan="2"><label>
                    <input name="nom" type="text" id="nom" value= "${empleados.nombre}" size="50" maxlength="50">
                    </label></td>
                </tr>
                <script type="text/javascript">
                        var nom1 = new LiveValidation('nom');
                        nom1.add( Validate.Length, { minimum: 1, maximum: 15 } );
                        nom1.add(Validate.Presence);
                        nom1.add(Validate.Exclusion2, { within: ["'",'|','°','¬','!','"','#','$','%','&','/',')','=','?','¿','¡','´','+','*','¨','{','[',',',';','.',':','-','_','*','@','0','1','2','4','3','5','6','7','8','9'], partialMatch: true })
                </script>
                <tr>
                  <td>&nbsp;</td>
                  <td class="texto">Apellido Paterno:</td>
                  <td colspan="2"><label>
                    <input name="aplellido" type="text" id="aplellido" value="${empleados.apellidop}" size="50" maxlength="50">
                  </label></td>
                </tr>
                <script type="text/javascript">
                    var apellidopat1 = new LiveValidation('aplellido');
                    apellidopat1.add( Validate.Length, { minimum: 1, maximum: 15 } );
                    apellidopat1.add(Validate.Presence);
                    apellidopat1.add(Validate.Exclusion2, { within: ["'",'|','°','¬','!','"','#','$','%','&','/',')','=','?','¿','¡','´','+','*','¨','{','[',',',';','.',':','-','_','*','@','0','1','2','4','3','5','6','7','8','9'], partialMatch: true })
                </script>
                <tr>
                  <td>&nbsp;</td>
                  <td class="texto">Apellido Materno:</td>
                  <td colspan="2"><label>
                    <input name="contra" type="text" id="contra" value="${empleados.apellidom}" size="50">
                  </label></td>
                </tr>
                    <script type="text/javascript">
                    var apellidomat1 = new LiveValidation('contra');
                    apellidomat1.add( Validate.Length, { minimum: 1, maximum: 15 } );
                    apellidomat1.add(Validate.Presence);
                    apellidomat1.add(Validate.Exclusion2, { within: ["'",'|','°','¬','!','"','#','$','%','&','/',')','=','?','¿','¡','´','+','*','¨','{','[',',',';','.',':','-','_','*','@','0','1','2','4','3','5','6','7','8','9'], partialMatch: true })
                    </script>
                <tr>
                  <td>&nbsp;</td>
                  <td class="texto">Contrase&ntilde;a:</td>
                  <td colspan="2"><label>
                    <input name="repcontra" type="password" id="repcontra" value="${empleados.password}" size="50" maxlength="50">
                  </label></td>
                </tr>
                <script type="text/javascript">
                var contrasena1 = new LiveValidation('repcontra');
                contrasena1.add( Validate.Length, { minimum: 6, maximum: 32 } );
                contrasena1.add(Validate.Presence)
                </script>
                <tr>
                  <td height="23">&nbsp;</td>
                  <td class="texto">Usuario:</td>
                  <td width="300"><input name="nom2" type="text" id="nom2" value="${empleados.username}" size="50" maxlength="50"></td>
                  <td width="197">&nbsp;</td>
                </tr>
                <script type="text/javascript">
                var nom3 = new LiveValidation('nom2');
                nom3.add( Validate.Length, { minimum: 5, maximum: 20 } );
                nom3.add(Validate.Presence)
                nom3.add(Validate.Exclusion, { within: ["'",'|','°','¬','!','"','#','$','%','&','/',')','=','?','¿','¡','´','+','*','¨','{','[',',',';','.',':','-','_','*','@'], partialMatch: true })
                </script>
                <tr>
                  <td>&nbsp;</td>
                  <td class="texto">Correo:</td>
                  <td colspan="2"><input name="correo2" type="text" id="correo2" value="${empleados.email}" size="50"></td>
                </tr>
                <script type="text/javascript">
                var mail = new LiveValidation('correo2');
                mail.add( Validate.Length, { minimum: 7, maximum: 80 } );
                mail.add(Validate.Presence);
                mail.add(Validate.Email)
                </script>
                <tr>
                  <td height="54" rowspan="2">&nbsp;</td>
                  <td>&nbsp;</td>
                  <td align="right"><a href="EmpleadoServlet?action=empleadopendiente&idempleado=${empleados.idEmpleado}">
                    </a><a href="EmpleadoServlet?action=empleadopendiente&idempleado=${empleados.idEmpleado}">
                      <%-- <input type="submit" name="elimninar" id="elimninar" value="Eliminar"> --%>
                      </a><a href="EmpleadoServlet?action=empleadopendiente&idempleado=${empleados.idEmpleado}">
                      <input type="submit" name="ec4" id="ec4" value="  Borrar">
                    </a></td>
                  <td rowspan="2">&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td align="right"><a href="EmpleadoServlet?action=empleadopendiente&idempleado=${empleados.idEmpleado}">
                    <input name="grbar" type="submit" id="grbar"  value="Grabar">
                  </a></td>
                </tr>
              </form>
            </table></td>
        </tr>
      </table></TD>
    </TR>
    <TR>

      <TD width="400" height="208" valign="top" bgcolor="#E4560B"><ul id="MenuBar1" class="MenuBarVertical">
        <li><a href="index2.jsp">Home</a>          </li>
        <li><a href="clientes2.jsp">Clientes</a></li>
        <li><a href="usuario2.jsp" class="MenuBarItemSubmenu">Administraci&oacute;n</a>
          <ul>
            <li><a href="AbonadoServlet">Abonados</a></li>
            <li><a href="CampanaServlet">Campa&ntilde;as</a></li>
            <li><a href="modificar_usuario.jsp">Empleados</a></li>
            <li><a href="ReportesServlet?action=listreportes">Reportes</a></li>
           	<li><a href="CampanaServlet?action=volverusuario">Cerrar Sesi&oacute;n</a></li>
          </ul>
        </li>
        <li><a href="noticias2.jsp">Noticias</a></li>
        <li><a href="soporte2.jsp">Soporte</a></li>

        <li><a href="contactanos2.jsp">Cont&aacute;ctanos</a></li>
</ul></TD>
    </TR>
    <TR>
      <TD height="169" valign="top"><img src="images/info_area.jpg" alt="back" width=178 height=270></TD>
    </TR>
  </TABLE>
</div>
<!--Jansondesigns.com offers an impressive collection of professionally made web templates, banner templates,
flash designs, free templates and free web graphics. We have templates that suit any personal or professional web site needs!! -->

<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</BODY>
</HTML>